<div class="w700">
    <div class="slider-header">
        <div class="title"><?= $co_product['titlemenu' . $hg] ?></div>
        <div class="arrow">
            <span id="slider-prev" class="left-arr"></span> <span class="right-arr" id="slider-next"></span>
        </div>
        <div class="clear"></div>
    </div>

    <div class="home-bottom-slider">
        <ul class="bxslider2">
            <?php
            $re_item_news = $db->select("select * from product_item order by featured desc, orderId asc, id asc limit 6 ");
            ?>
            <?php while ($item = $db->fetch($re_item_news)) : ?>
				<?php				
					$sql_hcat = $db->select("select * from product_cat where id = ".$item['idcat']."");
					$hcat = $db->fetch($sql_hcat);
				?>
                <li>
                    <a href="<?= APPLICATION_URL ?>product-detail/<?= $hcat['titleurl'] ?>/<?= $item['titleurl'] ?>.html">
                        <div class="pro-item-ctn">
                            <img alt="" src="<?= APPLICATION_URL ?>product-img/big/<?= $item['image'] ?>">
                            <div class="name"><?= $item['title'] ?></div>
                            <div class="home-right-bg"><?= formatPrice($item['price']); ?></div>
                        </div>
                    </a>

                </li>
            <?php endwhile; ?>

        </ul>
    </div>

</div>
<div class="w260 ml20">
    <div class="title">Media</div>
    <div class="media-ctn">
        <?php
        $sql = $db->select("select * from media_item order by orderId asc, id asc limit 1");
        ?>
        <?php while ($item = $db->fetch($sql)) : ?>

            <li>
                <a class="various fancybox.iframe" href="http://www.youtube.com/embed/<?= getYoutubeIdFromUrl($item['linkto']) ?>?autoplay=1">
                    

                    <div class="image">
                        <img src="http://img.youtube.com/vi/<?= getYoutubeIdFromUrl($item['linkto']) ?>/0.jpg" alt="image" />
                    </div>
                    <div class="tit"><?= $item['title'] ?></div>
                    <!--<div class="desc">Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</div>-->
                </a>

            </li>
        <?php endwhile; ?>
        <!--
    <div class="image">
        <img src="images/media-image.jpg" alt="image" />
    </div>
    <div class="tit">Bamix Processor og Grinder</div>
    <div class="desc">Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</div>
        -->
    </div>
</div>
